package com.abu.common.exception;

import lombok.Data;

/**
 * 自定义异常
 * @author com.abu
 */
@Data
public class CRException extends RuntimeException {

    private String msg;
    private Integer code;

    public CRException() {
    }

    public CRException(String msg) {
        this.code = 0;
        this.msg = msg;
    }

    public CRException(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }
}
